package cn.tedu.fresheveryday.service;

import cn.tedu.fresheveryday.pojo.entity.OrderDistribution;
import org.springframework.transaction.annotation.Transactional;

public interface IOderDistributionService {
    /**
     * 添加配送信息
     * @param distribution
     */
    void insert(OrderDistribution distribution);

    /**
     * 通过id修改配送信息
     * @param distribution
     * @return
     */
    @Transactional
    void updateById(OrderDistribution distribution);

    /**
     * 通过订单id查询配送信息
     * @param orderId
     * @return
     */
    OrderDistribution selectByOrderId(int orderId);
}